package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
    * 项目设备信息表(用于配置项目的设备)
    */
@ApiModel(value="cn-stylefeng-guns-modular-business-entity-ProjectDevice")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "app_project_device")
public class ProjectDevice {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    @TableField(value = "project_name")
    @ApiModelProperty(value="")
    private String projectName;

    /**
     * 桂建通项目ID，后期修改别的表，用对应的整形ID，不用桂建通的这个ID了
     */
    @TableField(value = "project_id")
    @ApiModelProperty(value="桂建通项目ID，后期修改别的表，用对应的整形ID，不用桂建通的这个ID了")
    private String projectId;

    /**
     * 厂家编号、品牌编号，方便搜索
     */
    @TableField(value = "device_brand_id")
    @ApiModelProperty(value="厂家编号、品牌编号，方便搜索")
    private Integer deviceBrandId;

    /**
     * 设备品牌。如海康、新驰、宇叶
     */
    @TableField(value = "device_brand")
    @ApiModelProperty(value="设备品牌。如海康、新驰、宇叶")
    private String deviceBrand;

    /**
     * 厂家出厂的设备序列号
     */
    @TableField(value = "device_sn")
    @ApiModelProperty(value="厂家出厂的设备序列号")
    private String deviceSn;

    /**
     * 设备类型，1是塔吊、2是升降机、3是吊钩可视化、4是AI服务器、5是监控摄像头，6是用电监测设备
     */
    @TableField(value = "device_type")
    @ApiModelProperty(value="设备类型，1是塔吊、2是升降机、3是吊钩可视化、4是AI服务器、5是监控摄像头，6是用电监测设备")
    private Integer deviceType;

    /**
     * 最后在线时间
     */
    @TableField(value = "device_last_time")
    @ApiModelProperty(value="最后在线时间")
    private Integer deviceLastTime;

    /**
     * 0是未启用，1是启用
     */
    @TableField(value = "status")
    @ApiModelProperty(value="0是未启用，1是启用")
    private Integer status;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    @ApiModelProperty(value="设备名称")
    private String deviceName;

    /**
     * 设备位置
     */
    @TableField(value = "device_area")
    @ApiModelProperty(value="设备位置")
    private String deviceArea;

    /**
     * 责任人
     */
    @TableField(value = "device_liable")
    @ApiModelProperty(value="责任人")
    private String deviceLiable;

    /**
     * 责任人手机
     */
    @TableField(value = "device_liable_phone")
    @ApiModelProperty(value="责任人手机")
    private String deviceLiablePhone;

    /**
     * 进场时间
     */
    @TableField(value = "device_entry_time")
    @ApiModelProperty(value="进场时间")
    private int deviceEntryTime;

    /**
     * 绑定摄像头编号
     */
    @TableField(value = "device_bind_camera")
    @ApiModelProperty(value="绑定摄像头编号")
    private String deviceBindCamera;

    /**
     * 设备安装时间
     */
    @TableField(value = "install_time")
    @ApiModelProperty(value="设备安装时间")
    private Integer installTime;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    @ApiModelProperty(value="备注")
    private String remarks;

    /**
     * 入库时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="入库时间")
    private Integer createTime;

    /**
     * 最后更新时间
     */
    @TableField(value = "last_time")
    @ApiModelProperty(value="最后更新时间")
    private Date lastTime;

    public static final String COL_ID = "id";

    public static final String COL_PROJECT_NAME = "project_name";

    public static final String COL_PROJECT_ID = "project_id";

    public static final String COL_DEVICE_BRAND_ID = "device_brand_id";

    public static final String COL_DEVICE_BRAND = "device_brand";

    public static final String COL_DEVICE_SN = "device_sn";

    public static final String COL_DEVICE_TYPE = "device_type";

    public static final String COL_DEVICE_LAST_TIME = "device_last_time";

    public static final String COL_STATUS = "status";

    public static final String COL_DEVICE_NAME = "device_name";

    public static final String COL_DEVICE_AREA = "device_area";

    public static final String COL_DEVICE_LIABLE = "device_liable";

    public static final String COL_DEVICE_LIABLE_PHONE = "device_liable_phone";

    public static final String COL_DEVICE_ENTRY_TIME = "device_entry_time";

    public static final String COL_DEVICE_BIND_CAMERA = "device_bind_camera";

    public static final String COL_INSTALL_TIME = "install_time";

    public static final String COL_REMARKS = "remarks";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_LAST_TIME = "last_time";
}